package monsmon.game.stile;

import monsmon.game.Tile;
import monsmon.game.Entity;
import monsmon.game.tmlt.TileT;

public class WalkOnTile extends Tile{

	private WalkEffect effect;

	public WalkOnTile(int x, int y, TileT t, WalkEffect eff){
		super(x, y, t);
		effect = eff;
	}

	@Override
	public void walk_on(Entity e){
		if(effect != null){
			effect.walk_on(e, this);
		}
	}

}
